package jmine.tec.web.wicket.converter;

import java.util.Locale;

import org.apache.wicket.util.convert.converters.BooleanConverter;

/**
 * Boolean Converter
 * 
 * @author diego.ferreira
 * @created Sep 22, 2010
 */
public class BooleanSimNaoConverter extends BooleanConverter {

    /**
     * {@inheritDoc}
     */
    @Override
    public String convertToString(Object value, Locale locale) {

        if (value != null) {
            if ((Boolean) value) {
                return "Sim";
            }
        }

        return "Não";
    }
}
